package com.sdgakj.study.thread;

/**
 * @Author: Du Ronghong
 * @Description:
 * @Date: Created in 17:30 2018/8/28
 * @Modified By:
 */
public class MyThread2 implements Runnable {
    private String name;

    public MyThread2(String name) {
        this.name = name;
    }

    @Override
    public void run() {
        for (int i = 0; i < 10; i++) {
            System.out.println("thread name=" + Thread.currentThread().getName() + ",x=" + i);
        }
    }
}
